using Newtonsoft.Json.Linq;

namespace LiJ.Framework.Official.Card.Mos
{
	/// <summary>
	///   核销code时响应的实体
	/// </summary>
	public class WxCardConsumeResp : WxBaseResp
	{
		/// <summary>
		/// 用户在该公众号内的唯一身份标识
		/// </summary>
		public string openid
		{
			get;
			set;
		}

		/// <summary>
		///   卡券ID
		/// </summary>
		public string card_id
		{
			get;
			set;
		}

		/// <summary>
		///   内部包含card_id ，请直接使用 card_id 字段
		/// </summary>
		internal object card
		{
			set
			{
				this.card_id = ((value == null) ? string.Empty : ((JToken)value)["card_id"].ToString());
			}
		}
	}
}
